package com.beiding.workordersystem.orders.generalorder.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.beiding.workordersystem.common.dao.MPage;
import com.beiding.workordersystem.orders.generalorder.entity.OrderProcess;
import com.beiding.workordersystem.orders.generalorder.model.ProcessModel;

import java.util.Date;
import java.util.List;

public interface OrderProcessService {

    void designate(String orderId, Integer type, List<OrderProcess> orderProcesses);

    IPage getMyProcesses(MPage mPage);

    void reportException(String processId, String exception);

    void accept(String[] ids);

    void publish(String[] ids);

    void changePrincipal(String processId, String principalId);

    void finish(String id, boolean sendMsg);

    void activeNextProcess(String id);

    ProcessModel statistics(Date start, Date to);
}
